From f7948e5a8cee6bd3f1843dbcdef3f64871279848 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 2 Sep 2006 21:13:38 +0000 Subject: [PATCH] Speed icon matching on Magellan output when we dont' have an icon to match. --- gpsbabel/magproto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 2f0dbd923..cee523c5b 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -1041,6 +1041,7 @@ mag_find_descr_from_token(const char *token) } for (i = icon_mapping; i->token; i++) { + if (token[0] == 0) break; if (case_ignore_strcmp(token, i->token) == 0) return i->icon; } -- 2.30.2